import { $delete, $get, $post } from './http'

// 获取商品列表数据
export const getGoodsListReq = params => $get('/goods', params)

// 删除商品
export const deleteGoodsReq = id => $delete(`/goods/${id}`)

// 获取商品详情
export const getGoodsDetailReq = id => $get(`/goods/${id}`)

// 添加商品
export const addGoodsReq = params => $post('/goods', params)
